package com.lemurian.bankdata.servicebean;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.lemurian.bankdata.bean.ReportDAO;
import com.lemurian.bankdata.report.dto.PencocokanTransaksi;
import com.lemurian.bankdata.services.ReportService;

@Service("reportService")
@Transactional(readOnly=true)
public class ReportBean implements ReportService {

	@Autowired ReportDAO dao;
	
	@Override
	@Transactional(readOnly=false,propagation=Propagation.REQUIRED)
	public List<PencocokanTransaksi> listPencocokanTransaksi(String orderBy, String ascDesc, String namaSertifikat, String noSertifikat, Date lo, Date hi) {
		return dao.listPencocokanTransaksi(orderBy, ascDesc, namaSertifikat, noSertifikat, lo, hi);
	}

}
